package com.io.service.impl;

import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import com.io.dao.TbWifeMapper;
import com.io.entity.one2one.Wife;
import com.io.service.TbWifeService;
/**
 * The class/interface
 *
 * @author guodd
 * @version 1.0 use jdk 1.8
 */
@Service
public class TbWifeServiceImpl implements TbWifeService{

    @Resource
    private TbWifeMapper tbWifeMapper;

    @Override
    public int deleteByPrimaryKey(Integer sid) {
        return tbWifeMapper.deleteByPrimaryKey(sid);
    }

    @Override
    public int insert(Wife record) {
        return tbWifeMapper.insert(record);
    }

    @Override
    public int insertSelective(Wife record) {
        return tbWifeMapper.insertSelective(record);
    }

    @Override
    public Wife selectByPrimaryKey(Integer sid) {
        return tbWifeMapper.selectByPrimaryKey(sid);
    }

    @Override
    public int updateByPrimaryKeySelective(Wife record) {
        return tbWifeMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(Wife record) {
        return tbWifeMapper.updateByPrimaryKey(record);
    }

}
